<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>文章管理</title>
<link rel="shortcut icon" type="image/ico" href="${basePath}/favicon.ico?v=1"/>
<link rel="stylesheet" type="text/css"
	href="${basePath}/css/style-1.css" />
<link rel="stylesheet" type="text/css"
	href="${basePath}/css/style_2_common.css" />
<link rel="stylesheet" type="text/css" href="${basePath}/css/cymain.css" />
<script type="text/javascript" src="${basePath}/js/jquery-1.8.3.min.js"></script>
<link rel="stylesheet" type="text/css"
	href="${basePath}/js/layer/skin/layer.css" />
<script type="text/javascript" src="${basePath}/js/layer/layer.m.js"></script>
<script type="text/javascript" src="${basePath}/js/layerconfig.js"></script>
</head>
<body id="nv_member" class="pg_CURMODULE">
	<#assign current='manage_articlemsg'>
	<div id="wp" class="wp">
		<#include "/include/header.html"/>
		<!--中间内容-->
		<div class="contentmanage">
			<div class="developer">
				<div class="tableContent">
					<#include "/include/left.html"/> <#include "/include/wxtop.html"/>
					<div class="content">
						<div class="cLineB">
							<h4 class="left">文章管理</h4>
							<div class="clr"></div>
							<div id="qrcode1"></div>
						</div>
<style>
th, td {
	text-align: center;
}
</style>
						<div class="cLine">
							<div class="pageNavigator left">
								<a href="${basePath}/admin/articlemsg/saveview" title="添加" class="btnGrayS"> <img src="${basePath}/images/add.png" width="16" class="vm"> 添加 </a>
							    <a href="${basePath}/admin/toStatic/indexStatic" title="" class="btnGrayS"> <img src="${basePath}/images/add.png" width="16" class="vm"> 静态化首页 </a>
							</div>
							<div class="searchbar right">
								<form action="${basePath}/admin/articlemsg/index" method="get">
									<select name="siteid" style="width: 150px;">
										<option value="">请选择栏目</option>
										<#if siteAll?exists>
										<#list siteAll as bean >
										<option <#if siteid??&&siteid == bean.id>selected</#if> value="${bean.id!}">${bean.name!}</option>
										</#list>
										</#if>		
									</select>
									<input type="submit" value="搜索" class='btnGreen'/>
								</form>	
							</div>
							<div class="clr"></div>
						</div>
						<div class="msgWrap">
							<table class="ListProduct" border="0" cellspacing="0" cellpadding="0" width="100%">
								<thead>
									<tr>
										<th width="35">编号</th>
										<th width="120">标题</th>
										<th width="120">作者</th>
										<th width="120">栏目</th>
										<th width="240">创建时间</th>
										<th width="250" class="norightborder">操作</th>
									</tr>
								</thead>
								<tbody>
									<#if page?exists>
									<#list page.recordList as bean>
									<tr>
										<td>${bean.id?c}</td>
										<td>${bean.name?default('')}</td>
										<td>${bean.author?default('')}</td>
										<td>${bean.site_name?default('')}</td>
										<td>${bean.addtime?string("yyyy-MM-dd HH:mm:ss")!''}</td>
										<td align="" center class="norightborder">
										  <a href="${basePath}/admin/articlemsg/saveview?article_id=${bean.id}">修改</a> 
										  <a href="javascript:removeOne(${bean.id})">删除</a> 
										</td>
									</tr>
									</#list>
									</#if>
								</tbody>
							</table>
						</div>
						<#include "/include/form_pagination.html"/> 
						<#include "/include/simple_page_js.html"/>	
					</div>
					<div class="clr"></div>
				</div>
			</div>
		</div>
	</div>
	<#include "/include/footer.html"/>
</body>

<script type="text/javascript">
function removeOne(id){
	var url="${basePath}/admin/articlemsg/del/"+id+"/${page.currentPage}";
	layer.confirm("确定要删除吗？", {icon: 1, title:"提示信息"}, function(index){
		location.href=url;			
	},
	function(index){
		layer.close(index);
	});
}
</script>
</html>